//
//  HTTPRequstManger.h
//  OverseasImmigration
//
//  Created by yuqin on 2019/5/20.
//  Copyright © 2019年 yuqin. All rights reserved.
//

#import <Foundation/Foundation.h>

#define  SZHTTPSReqManager [SZHTTPSRsqManager sharedSZHTTPSRsqManager]

typedef void(^SZHTTPSuccessBlock)(id responseObject);
typedef void(^SZHTTPFailureBlock)(NSError* error);
typedef void(^SZPresentLoginVC)(id responseObject);

@interface HTTPRequstManger : NSObject
DEFINE_SINGLETON_FOR_HEADER(HTTPRequstManger);


-(NSURLSessionDataTask *)getRequestWithUrlString:(NSString*)urlString  appendParameters:(NSDictionary*)appendParameters successBlock:(SZHTTPSuccessBlock)successBlock failureBlock:(SZHTTPFailureBlock)failureBlock;

-(NSURLSessionDataTask *)postRequestWithUrlString:(NSString*)urlString  appendParameters:(NSDictionary*)appendParameters  bodyParameters:(NSDictionary*)bodyParameters successBlock:(SZHTTPSuccessBlock)successBlock failureBlock:(SZHTTPFailureBlock)failureBlock;

@end
